package test.zcj.ext.elasticsearch;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

import com.zcj.util.UtilRandom;

public class Wsxt {

	public static List<String> HOSLIST = new ArrayList<String>();
	static {
		HOSLIST.add("温州第一医院");
		HOSLIST.add("附二医");
		HOSLIST.add("市中心医院");
		HOSLIST.add("解放军118医院");
		HOSLIST.add("温州中医院");
	}
	public static List<String> KSLIST = new ArrayList<String>();
	static {
		KSLIST.add("急救室");
		KSLIST.add("化验室");
		KSLIST.add("儿科");
		KSLIST.add("妇科");
		KSLIST.add("五官科");
		KSLIST.add("神经科");
		KSLIST.add("皮肤科");
		KSLIST.add("骨科");
		KSLIST.add("内科");
	}
	/**
	 * 自增主键
	 */
	private Long id;
	/**
	 * 姓名
	 */
	private String name;
	/**
	 * 身份证号码
	 */
	private String idcard;
	/**
	 * 地址
	 */
	private String address;
	/**
	 * 联系电话
	 */
	private String tel;
	/***
	 * 医院名称
	 */
	private String hospital;
	/**
	 * 科室
	 */
	private String ks;

	/**
	 * 就诊时间
	 */
	private String jztime;
	/**
	 * 上报时间
	 */
	private String uptime;

	/**
	 * 标识
	 */
	private String flag;

	public static Wsxt init() {
		Wsxt obj = new Wsxt();
		Random random = new Random(System.nanoTime());
		obj.setFlag("0");
		obj.setHospital(HOSLIST.get(random.nextInt(HOSLIST.size())));
		obj.setAddress(UtilRandom.getAddress());
		obj.setIdcard(UtilRandom.getIdcard());
		obj.setJztime(UtilRandom.getDateString());
		obj.setKs(KSLIST.get(random.nextInt(KSLIST.size())));
		obj.setName(UtilRandom.getChineseName());
		obj.setTel(UtilRandom.getTel());
		obj.setUptime(UtilRandom.getDateString());
		return obj;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIdcard() {
		return idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getHospital() {
		return hospital;
	}

	public void setHospital(String hospital) {
		this.hospital = hospital;
	}

	public String getKs() {
		return ks;
	}

	public void setKs(String ks) {
		this.ks = ks;
	}

	public String getJztime() {
		return jztime;
	}

	public void setJztime(String jztime) {
		this.jztime = jztime;
	}

	public String getUptime() {
		return uptime;
	}

	public void setUptime(String uptime) {
		this.uptime = uptime;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

}